﻿@model Whoever.Health.Website.Models.ContactViewModel

<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Name)
    @Html.TextBoxFor(model => model.Entity.Name, new { @data_bind = "value: Name, css: { inputerror: Name.hasError }", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Name.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Surname)
    @Html.TextBoxFor(model => model.Entity.Surname, new { @data_bind = "value: Surname, css: { inputerror: Surname.hasError }", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Surname.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Description)
    @Html.TextBoxFor(model => model.Entity.Description, new { @data_bind = "value: Description", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Description.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.WebsiteURL)
    @Html.TextBoxFor(model => model.Entity.WebsiteURL, new { @data_bind = "value: WebsiteURL", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.WebsiteURL.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.CompanyName)
    @Html.TextBoxFor(model => model.Entity.CompanyName, new { @data_bind = "value: CompanyName", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.CompanyName.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Since)
    @Html.TextBoxFor(model => model.Entity.Since, new { @data_bind = "datepicker: Since", @class = "form-control", @placeholder = @Html.LocalizedText("Contact.Since.PlaceHolder") })
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.ContactStatusSelectList)
    @Html.KOLocalizedSelectFor(model => model.ContactStatusSelectList, Model.ContactStatusSelectList, "Description", "Id", "StatusId")
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.ContactTypeSelectList)
    @Html.KOLocalizedSelectFor(model => model.ContactTypeSelectList, Model.ContactTypeSelectList, "Name", "Id", "TypeId")
</div>